package com.competitions.easydubbing.dao;

import com.competitions.easydubbing.entity.UserInfo;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

/**
 * @author Mapler
 * @since 2021-5-20
 */
@Repository
public interface UserInfoDao {

    void insertUser(@Param("phone")String phone,@Param("password")String password);

    UserInfo selectUser(@Param("phone")String phone,@Param("password")String password);

    UserInfo selectUserByPhone(@Param("phone")String phone);

    UserInfo selectUserById(@Param("uid")int uid);

    void updateUserData(@Param("uid")int uid,@Param("alias")String alias,@Param("desc")String desc);

    void updateAvatar(@Param("uid")int uid,@Param("avatar")String avatar);
}
